package InterfaceDemo;

/**
 * 
 * @author zybw-kf01 2018-3-5 11:10:33
 * 
 * A implements I
 * B extends A
 * 那么 B implements I
 *
 */
public class ExtendInterface {
	public static void main(String[] args) {
		YelloWMan yelloWMan = new YelloWMan();
		yelloWMan.name("ss");
		
	}
}

interface MName{
	void name(String str);
}
class Man implements MName{
	
	@Override
	public void name(String str) {
		System.out.println("man--"+str);
		
	}
	
}

class YelloWMan extends Man{
	@Override
	public void name(String str) {
		// TODO Auto-generated method stub
		super.name(str);
		System.out.println("YY--" +str);
	}
}